﻿namespace TPG.SharePoint.Workflow
{
    /// <summary>
    /// Indicates how to serialize the data for workflow association, 
    /// instantiation and modification forms.
    /// </summary>
    /// <remarks>
    /// By default the framework uses Xml serialization as indicated by
    /// <see cref="SerializationMode.Xml" />.
    /// </remarks>
    public enum SerializationMode
    {
        /// <summary>
        /// Indicates to serialize data objects using the 
        /// <see cref="System.Xml.Serialization.XmlSerializer"/>.
        /// </summary>
        Xml,
        /// <summary>
        /// Indicates to serialize data objects using the 
        /// <see cref="System.Runtime.Serialization.Formatters.Binary.BinaryFormatter" />.
        /// </summary>
        Binary
    }
}
